<?php
/**
 * Created by PhpStorm.
 */

use Biz\service\activity\Coupon as sCoupon;

/**
 * @deprecated
 */
class CanReceiveListAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_VISITOR;
    const ACTION_TYPE = "coupon";

    public function main()
    {
        $goodsId = $this->getRequest()->getQuery('goods_id', 0);
        $shopId = $this->getRequest()->getQuery('shop_id', 0);
        $limit = $this->getRequest()->getQuery('limit', 20);


        $result = sCoupon::canReceiveList($this->uid, $goodsId, $limit, $shopId);

        $this->setSuccess(['list' => $result]);
    }

}
